maxX(X,Y,X):- X >= Y,!.
maxX(X_,Y,Y).